import request from '@/utils/request'

// 获取学生列表（支持班级筛选）
export const getStudentList = (params) => {
  return request.get('/student/list', { params })
}

// 新增学生
export const addStudent = (data) => {
  return request.post('/student/add', data)
}

// 编辑学生
export const editStudent = (data) => {
  return request.put('/student/edit', data)
}

// 删除学生
export const deleteStudent = (id) => {
  return request.delete(`/student/delete/${id}`)
}